from __future__ import annotations

from datetime import datetime
from typing import Optional
from attrs import define, field

__ALL__ = ["UsersGetAPIResponseItem", "UsersPostAPIResponse", "UsersGetAPIResponse"]


@define(kw_only=True)
class UsersGetAPIResponseItem:
    id: Optional[int] = field(default=None)
    name: Optional[str] = field(default=None)
    email: Optional[str] = field(default=None)


@define(kw_only=True)
class UsersPostAPIResponse:
    id: Optional[int] = field(default=None)
    name: Optional[str] = field(default=None)
    email: Optional[str] = field(default=None)
    age: Optional[int] = field(default=None)


@define(kw_only=True)
class UsersGetAPIResponse:
    id: Optional[int] = field(default=None)
    name: Optional[str] = field(default=None)
    email: Optional[str] = field(default=None)
    age: Optional[int] = field(default=None)
    created_at: Optional[datetime] = field(default=None)
